###
 # ChsMS.exe  ---- 一个工具箱软件
 # Copyright (C) 2023 马中周
 #
 # 本程序是免费的;依据 apache2 协议。
 #
 # 这个程序是我自身的学习和实验性产品所以会有些生涩。不保证功能的适配，以及针对其他环境的适用性。
 #
 # 如果有幸想与我交流想法可以发邮件给我：my136@263.net
 #
 # @当前Qt开发版本: 5.15.2
 #
 ###

TEMPLATE = app

QT       += core gui
QT       += network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17
CONFIG += release
#CONFIG += console

DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += BaseChMushSte

SOURCES += \
    BaseChMushSte/basechickenmushroomstewed.cpp \
    BaseChMushSte/createalotofpasswords.cpp \
    BaseChMushSte/ipmaskcalculate.cpp \
    BaseChMushSte/nameSpaces_cmst.cpp \
    appbase.cpp \
    chmslog.cpp \
    chmsnetworkbase.cpp \
    classfordnsiniform.cpp \
    classforhostdiscover.cpp \
    classforipmaskcalculate.cpp \
    derforpasswdprodpanel.cpp \
    formabout.cpp \
    main.cpp \
    mainwindows.cpp

HEADERS += \
    BaseChMushSte/basechickenmushroomstewed.h \
    BaseChMushSte/createalotofpasswords.h \
    BaseChMushSte/ipmaskcalculate.h \
    BaseChMushSte/nameSpaces_cmst.h \
    appbase.h \
    chmslog.h \
    chmsnetworkbase.h \
    classfordnsiniform.h \
    classforhostdiscover.h \
    classforipmaskcalculate.h \
    derforpasswdprodpanel.h \
    formabout.h \
    mainwindows.h

FORMS += \
    classfordnsiniform.ui \
    classforhostdiscover.ui \
    classforipmaskcalculate.ui \
    derforpasswdprodpanel.ui \
    formabout.ui

# CONFIG += lrelease
# CONFIG += embed_translations

RC_FILE += logo.rc

DESTDIR = ../Executable

TARGET = ChMS

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resource.qrc

DISTFILES += \
    logo.rc
